﻿// KittyFeral PVE - HB Routine for FeralDruid 5.4 - By Neyia
using Styx;
using Styx.Common;
using Styx.CommonBot;
using Styx.CommonBot.Routines;
using Styx.Pathing;
using Styx.TreeSharp;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Action = Styx.TreeSharp.Action;

namespace KittyFeral
{
    public partial class Main : CombatRoutine
    {
        #region lowbierotation
        Composite LowbieRotation()
        {
            return 
                new PrioritySelector(
                new Decorator(ret => Paused, PauseCR()),
                new Decorator(ret => gotTarget && !Me.IsSafelyFacing(Me.CurrentTarget), new Action(delegate { Me.CurrentTarget.Face(); return RunStatus.Failure; })),
                CastOnMe(REJUVENATION, ret => !buffExists(REJUVENATION, Me) && Me.HealthPercent <= CRSettingsCat.myPrefs.RejuvenationCombat),
                Cast(MOONFIRE, ret => gotTarget && !debuffExists(MOONFIRE, Me.CurrentTarget) && LastSpell != MOONFIRE && Me.CurrentTarget.Distance <= 38),
                Cast(WRATH, ret => gotTarget && Me.CurrentTarget.Distance <= 38)
                );
        }
        #endregion
    }
}
